<?php if (!$logged) { ?>
	<a onclick="<?php echo $loginpopup; ?>" class="fancybox"><?php echo $text_login; ?></a>
	<a onclick="location.href='<?php echo $create_account; ?>'"><?php echo $text_create; ?></a>
<?php }  else { ?>
  <a onclick="<?php echo $logoutpopup; ?>" class="fancybox"><?php echo $text_logout; ?></a>
  <a href="<?php echo $account; ?>"><?php echo $text_account; ?></a>
<?php } ?>
<script type="text/javascript"><!--
$('.fancybox').fancybox({cyclic: true});
//--></script>
</body></html>